
//------------------------------------------------------------------------------

using Apps.Models;
using System;
using System.ComponentModel.DataAnnotations;
namespace Apps.Models.PUB
{

	public partial class PUB_DEV_CAMERAModel:Virtual_PUB_DEV_CAMERAModel
	{
		
	}
	public class Virtual_PUB_DEV_CAMERAModel
	{
		[Display(Name = "摄像头编号")]
		public virtual string CAMERA_ID { get; set; }
		[Display(Name = "节点编号"),Required]
		public virtual string NODE_ID { get; set; }
		[Display(Name = "存储服务器"),Required]
		public virtual string MEDIASERVER_ID { get; set; }
		[Display(Name = "服务通道"), RegularExpression(@"^\+?[0-9][0-9]*$", ErrorMessage = "服务通道应为非负数")]
		public virtual Nullable<short> CHANNEL { get; set; }
		[Display(Name = "品牌"),Required]
		public virtual int  BRAND { get; set; }
		[Display(Name = "类型"),Required]
		public virtual int TYPE { get; set; }
		[Display(Name = "名称"),Required]
		public virtual string NAME { get; set; }
		[Display(Name = "登陆用户"),Required]
		public virtual string USERNAME { get; set; }
		[Display(Name = "登陆密码"),Required]
		public virtual string PASSWORD { get; set; }
		[Display(Name = "IP"),Required, RegularExpression(@"((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))", ErrorMessage = "请输入正确格式的IP地址")]
		public virtual string IP { get; set; }
		[Display(Name = "HTTP端口"),Required, RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "端口必须为非零的正整数")]
		public virtual Nullable<short> HTTP_PORT { get; set; }
		[Display(Name = "RTSP端口"),Required, RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "端口必须为非零的正整数")]
		public virtual Nullable<short> RTSP_PORT { get; set; }
		[Display(Name = "SERVER端口"),Required, RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "端口必须为非零的正整数")]
		public virtual Nullable<short> SERVER_PORT { get; set; }
		[Display(Name = "是业务缺省摄像头")]
		public virtual Nullable<bool> IS_GIS { get; set; }
		[Display(Name = "车辆回放摄像头")]
		public virtual Nullable<bool> IS_VIEW { get; set; }
		[Display(Name = "门禁联动摄像头")]
		public virtual Nullable<bool> IS_ACCESS_TIGER { get; set; }
		[Display(Name = "网络状态")]
		public virtual Nullable<bool> NET_STATUS { get; set; }
		[Display(Name = "网络诊断")]
		public virtual Nullable<System.DateTime> NET_STATUS_TIME { get; set; }
		}
}
